{% extends "zinnia/base.html" %}
{% load i18n %}

{% block title %}{% trans "Login required" %}{% endblock title %}

{% block body-class %}login-required{% endblock body-class %}

{% block content %}
<h1>{% trans "Login required" %}</h1>

{% if form.errors %}
<p class="error">
  {% trans "Your username and password didn't match. Please try again." %}
</p>
{% endif %}
<p>
  {% trans "You need to be connected to view this entry." %}
</p>

<form method="post" action=".">
  {% csrf_token %}
  <table>
    <tr>
      <td>{{ form.username.label_tag }}</td>
      <td>{{ form.username }}</td>
    </tr>
    <tr>
      <td>{{ form.password.label_tag }}</td>
      <td>{{ form.password }}</td>
    </tr>
    <tr>
      <td colspan="2">
        <input type="hidden" name="next" value="." />
        <input type="submit" value="{% trans "Login" %}" />
      </td>
    </tr>
  </table>
</form>
{% endblock content %}
